///#begin en
//
//  Copyright (c) 2016 MyCamCloud. All rights reserved.
//
///#end

#import "HKSDeviceClient.h"

@interface HKSDeviceClient (CallCustom)


///#begin zh-cn
/**
 *  @brief          定制功能接口
 *  @param[in]      aCusFuncId[int]                 定制功能ID，
 *  @param[in]      aCusBodyBuf[unsigned char *]    定制包体缓冲区
 *  @param[in]      aCusBoyLen[int]                 定制包体长度
 *  @param[out]     aRespBodyBuf[unsigned char **]  应答包体缓冲区，由该函数分配内存，需调用callCustomFuncReleaseBuf释放
 *  @param[out]     out_pRespBodyLen[int*]          应答包体长度

 *  @return         [int] 错误码
 */
///#end
///#begin en
///#end
- (int)callCustomFunc:(int)aCusFuncId bodyBuffer:(unsigned char *)aCusBodyBuf bodyLen:(int)aCusBoyLen respBodyBuf:(unsigned char **)aRespBodyBuf respBodyLen:(int *)aRespBodyLen;


///#begin zh-cn
/**
 *  @brief          定制功能资源释放
 *  @param[in]      aDataBuf[unsigned char *]   定制包体缓冲区
 */
///#end
///#begin en
///#end
- (void)callCustomFuncReleaseBuf:(unsigned char *)aDataBuf;
@end
